package com.bomberman.items;

import info.gridworld.grid.Location;
import com.bomberman.environment.BombWorld;

import java.awt.Color;

public class PBomb extends Bomb
//special Bomb, explodes in + AND x pattern
// attained by getting PwrMax
{
	public PBomb(int Pwr, Color Clr, BombWorld world)
	{
		super(Pwr, Clr, world);
	}
	
	
	public void explode()
	{
	Location Loc = getLocation();
	removeSelfFromGrid();
	PBOOM start = new PBOOM(w,clr);
	w.add(Loc, start);
	start.explode(pwr);
	
	BOOM start2 = new BOOM(w,clr);
	w.add(Loc, start2);
	start2.explode(pwr);
	}
}